package mydemo.springcloudalibaba.cousumer.service;

import mydemo.springcloudalibaba.api.common.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "cloudalibaba-provider-payment",fallback = PaymentOpenFiegnService_fallback.class)
public interface PaymentOpenFiegnService {
    @RequestMapping("/payment/get/{id}")
    public CommonResult getPaymentById(@PathVariable("id") Long id);
}
